<template>
  <div class="system-management">
    <div class="page-header">
      <h1>系统管理</h1>
      <div class="breadcrumb">系统管理</div>
    </div>

    <div class="management-content">
      <div class="management-grid">
        <!-- 个人信息 -->
        <div class="management-card" @click="navigateTo('/system/profile')">
          <div class="card-icon">👤</div>
          <div class="card-content">
            <h3>个人信息</h3>
            <p>查看和编辑个人账户信息</p>
          </div>
          <div class="card-arrow">→</div>
        </div>

        <!-- 修改密码 -->
        <div class="management-card" @click="navigateTo('/system/change-password')">
          <div class="card-icon">🔒</div>
          <div class="card-content">
            <h3>修改密码</h3>
            <p>修改登录密码，提高账户安全性</p>
          </div>
          <div class="card-arrow">→</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const navigateTo = (path) => {
  router.push(path)
}
</script>

<style scoped>
.system-management {
  padding: 24px;
  background: #f5f7fa;
  min-height: 100vh;
}

.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  margin: 0 0 8px 0;
  color: #2c3e50;
  font-size: 28px;
  font-weight: 600;
}

.breadcrumb {
  color: #7f8c8d;
  font-size: 14px;
}

.management-content {
  max-width: 1200px;
}

.management-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}

.management-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 2px solid transparent;
}

.management-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
}

.card-icon {
  font-size: 48px;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.card-content {
  flex: 1;
}

.card-content h3 {
  margin: 0 0 8px 0;
  color: #2c3e50;
  font-size: 20px;
  font-weight: 600;
}

.card-content p {
  margin: 0;
  color: #7f8c8d;
  font-size: 14px;
  line-height: 1.5;
}

.card-arrow {
  font-size: 24px;
  color: #cbd5e0;
  font-weight: bold;
  transition: all 0.3s ease;
}

.management-card:hover .card-arrow {
  color: #667eea;
  transform: translateX(4px);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .management-grid {
    grid-template-columns: 1fr;
  }
  
  .management-card {
    flex-direction: column;
    text-align: center;
  }
  
  .card-content {
    text-align: center;
  }
}
</style>


